<?php

use yii\helpers\Html;

/**
 * @var yii\web\View $this
 */
    $this->title = Yii::t('rbac-admin', 'Routes');
    $this->params['breadcrumbs'][] = $this->title;
    ?>
    <h1><?= Html::encode($this->title) ?></h1>


    <div class="col-lg-5">
        <?php
        echo Html::hiddenInput('role_id',$role_id,['id' => 'role_id']);
        echo Html::listBox('tasks[]', '', $tasks, [
            'id' => 'all_roles',
            'multiple' => true,
            'size' => 20,
            'style' => 'width:100%']);
        ?>
    </div>
    <div class="col-lg-1">
        &nbsp;<br><br>
        <?php
        echo Html::a('>>', '#', ['class' => 'btn btn-success', 'data-action' => 'assign']) . '<br>';
        echo Html::a('<<', '#', ['class' => 'btn btn-success', 'data-action' => 'delete']) . '<br>';
        ?>
    </div>
    <div class="col-lg-5">
        <?php
        echo Html::listBox('tasks[]', '', $exists, [
            'id' => 'exists_roles',
            'multiple' => true,
            'size' => 20,
            'style' => 'width:100%',
        ]);
        ?>
    </div>
<?php
$this->render('_script');
